package com.xzc.refactory.object.moveMethod.c3;

public class AccountType {
    boolean isPremium() {
        return true;
    }

    //if ref src class multiply variable, this arg will be change to src object
    double overdraftCharge(int daysOverdrawn) {
        if (isPremium()) {
            double result = 10;
            if (daysOverdrawn > 7) result += (daysOverdrawn - 7) * 0.85;
            return result;
        } else return daysOverdrawn * 1.75;
    }
}
